package com.design.cjm.creational.singleton.example5;

/**
 * @Author: Jie Ming Chen
 * @Date: 2018/9/27
 * @Version 1.0
 */
public class Singleton {

    private Singleton() {
    }

    private static class SingletonHolder {
        private static final Singleton INSTANCE = new Singleton();
    }

    public static Singleton getSingleton() {
        return SingletonHolder.INSTANCE;
    }
}
